/*  */
body,
* {
    font-family: "Helvetica", "Source Han Sans";
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: black;
}

li {
    list-style: none;
}

a:active {
    color: black;
}

body {
    font-size: 75%;
    line-height: 1.5;
}

/* 导航 */
#nav_top {
    width: 100%;
    height: 88px;
    border-bottom: 1px solid grey;
}

nav {
    width: 1200px;
    height: 88px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;

}

nav>div {
    width: 200px;
    height: 100%;
    display: flex;
    align-items: center;
}

nav>div h1 {
    font-size: 24px;
    font-weight: bold;
    margin-left: 20px;
}

#nav_logo {
    width: 60px;
    height: 88px;
    display: flex;
    align-items: center;
}

#nav_logo img {
    width: 100%;
}

.nav_right {
    font-size: 16px;
}

.chactive {
    align-items: center;
}








/* 侧边栏 */
#right_nav {
    width: 60px;
    height: auto;
    position: fixed;
    top: 50%;
    margin-top: -5%;
    right: 0;
    z-index: 9;

    &>div {
        width: 60px;
        height: 60px;
        margin-bottom: 1px;
        background-color: black;
        text-align: center;

        a {
            display: block;
            width: 100%;
            height: 60px;

            &:hover {
                .erweima {
                    display: block;
                }
            }
        }

        img {
            width: 42px;
            height: 37px;
            margin-top: 50%;
            transform: translateY(-50%);
        }
    }
}



.erweima {
    position: absolute;
    height: 186px;
    width: 156px;
    right: 61px;
    top: 0px;
    text-align: center;
    background: #333;
    opacity: 0.9;
    padding: 10px 23px 0 23px;
    box-sizing: border-box;
    display: none;
}

#right_nav {
    &>div {
        &:nth-child(3) {
            .erweima {
                top: 61px;
            }
        }

        a {
            &>div {
                &>div {
                    width: 110px;
                    height: 110px;

                    img {
                        width: 100%;
                        height: 100%;
                    }
                }

                p {
                    color: white;
                    margin: 5px 0 5px 0;
                }
            }
        }
    }
}





#titled {
    width: 1200px;
    height: 30px;
    /* background-color: aqua; */
    margin: 20px auto;
    display: flex;
}

#titled div {
    width: 400px;
    height: 100%;
    background: url('../images/1.png') no-repeat;
    line-height: 30px;
    text-align: center;
    background-size: 100% 100%;
    font: 16px/30px Microsoft YaHei, STHeiti, sans-serif;
    color: #767676;
}

#titled div:first-child {
    width: 400px;
    height: 100%;
    color: white;
    background: url('../images/cart-in.png') no-repeat;
    background-size: 100% 100%;
}

.hiddenuser {
    display: none;
}

/* 购物车 */
.car-list {
    width: 1200px;
    margin: 0 auto;

    .car-title {
        background: #fff;
        line-height: 40px;
        padding-left: 40px;
        margin-top: 20px;
        font-size: 14px;
        color: #a4a4a4;
        display: flex;

        .xuanze {
            width: 150px;
            display: flex;
            align-items: center;

            input {
                width: 14px;
                height: 14px;
            }
        }
    }
}


.car-list .car-title li {
    float: left;
    width: 100px;
    margin-left: 30px;
    min-height: 14px;
    text-align: center;

    &:first-child {
        width: 450px;
        text-align: left;
        margin-left: 0;
    }

}


.car-list .car-content {
    width: 1160px;
    padding: 20px 20px;
    margin-top: 10px;
    background-color: #fff;

    ul {
        width: 1120px;
        height: 100px;
        font-size: 18px;
        color: #3a3a3a;
        padding: 0 20px;
        margin-bottom: 18px;
        background-color: #f5f5f5;
        display: flex;
        align-items: center;
        justify-content: center;

        >div {
            text-align: center;
        }
    }
}

.car-list .car-content ul .check {
    margin-right: 13px;
    width: 14px;
    height: 14px;
}

.car-list .car-content ul img {
    width: 96px;
    height: 96px;
    

}

.car-list .car-content ul .shop-img {
    margin-right: 20px;
}

.car-list .car-content ul .shop-name {
    width: 450px;
}

.car-list .car-content ul .inpur-num {
    width: 100px;
    display: flex;
}


.car-list .car-content ul .inpur-num>div {
    width: 23px;
    height: 22px;
    cursor: pointer;
    border: 1px solid #d6d6d6;
    text-align: center;
    line-height: 20px;
}

.car-list .car-content ul .inpur-num input {
    width: 44px;
    height: 22px;
    font-size: 18px;
    text-align: center;
    line-height: 22px;
    background-color: #bebaba;
    border-top: 1px solid #d6d6d6;
    border-bottom: 1px solid #d6d6d6;
}

.car-list .car-content ul>div {
    width: 100px;
    margin-left: 30px;
}

.car-list #check,
.check,
.delshop {
    cursor: pointer;
}


/* -----结算部分------------- */
.cat-tool {
    width: 1200px;
    height: 60px;
    margin: 0 auto;
    margin-top: 10px;
    background-color: #ffffff;
    display: flex;
}

.cat-tool .account {
    width: 180px;
    height: 60px;
    line-height: 60px;
    display: block;
    background: #ca151e;
    font-size: 20px;
    color: #fff;
    text-align: center;
}

.cat-tool section {
    padding-left: 40px;
    padding-right: 40px;
    width: 1020px;
    display: flex;
    justify-content: space-between;
    align-content: center;
}

.cat-tool section .zongji {
    font-size: 20px;
    line-height: 60px;
}

.cat-tool section #money,
#count {
    font-weight: 700;
    color: #ca151e;
}


/* 猜你喜欢 */
#favorite {
    width: 1200px;
    height: 372px;
    margin: 0 auto;
    margin-top: 30px;
    /* background-color: aqua; */
}

#favorite h1 {
    width: 1200px;
    height: 39px;
    font-size: 26px;
    line-height: 39px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}


#favorite ul {
    width: 100%;
}

#favorite ul li {
    width: 228px;
    height: 278px;
    padding: 10px;
    box-sizing: border-box;
    /* background-color: aqua; */
    float: left;
    margin: 5px 5px 20px 5px;
}

#favorite ul li:hover {
    box-shadow: 0 0 12px 8px #f3f3f3;
}

#favorite ul li a {
    width: 100%;
    height: 100%;
}

#favorite ul li a>div {
    width: 208px;
    height: 201px;
}

#favorite ul li a img {
    width: 100%;
}

#favorite ul li a article {
    width: 100%;
    height: 76px;
    margin-top: 20px;
    box-sizing: border-box;
    /* background-color: blue; */
    padding: 0 10px;
}

#favorite ul li a article div {
    width: 100%;
    font-size: 16px;
    text-align: center;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow-x: hidden;
}

#favorite ul li a article p {
    width: 100%;
    color: red
}

#favorite ul li a article p span {
    margin-left: 40px;
    font-weight: bold;
}

#favorite ul li a article p del {
    margin-left: 20px;
    color: #a5a5a5;
}



// 尾部
footer {
    width: 100%;
    height: 600px;
    /* background-color: green; */
}

.footer_top_center {
    width: 1060px;
    height: 100%;
    box-sizing: border-box;
    padding: 0 100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;

    &>div {
        width: 182px;
        height: 127px;
        display: flex;
        flex-direction: column;
        color: white;
        text-align: center;
    }
}

.footer_top {
    width: 100%;
    height: 166px;
    background-color: #000;
}

.footer_top_center>div h3 {
    font-size: 2em;
}

.footer_top_center>div>div {
    width: 100%;
    height: 72px;
}

.footer_top_center>div>div img {
    height: 100%;
}

.footer_logo img {
    display: block;
    width: 100%;
}

.footer_logo {
    margin-top: 40px;
    width: 200px;
    height: 109px;

    >a {
        display: block;
        width: 100%;
        height: 100%;
    }
}

.footer_middle {
    width: 1200px;
    height: 269px;
    margin: 40px auto 0;
    padding: 0 100px;
    // background-color: forestgreen;
    display: flex;
}

.footer_middle_left {
    width: 756px;
    height: 269px;
    float: left;
    // background-color: yellow;
}

.footer_middle {
    ul {
        margin-left: 50px;
        float: left;

        li {
            font-size: 13px;
            height: 25px;
        }
    }
}

.footer_middle_right {
    width: 432px;
    height: 203px;
    padding-right: 162px;
    box-sizing: border-box;
    // background-color: cyan;
}



.fmr_top {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-left: 96px;
    margin-bottom: 10px;

    div {
        width: 100px;
        height: 100px;
        margin-bottom: 5px;

        img {
            width: 100%;
        }

    }
}

.fmr_bottom {
    width: 205px;
    height: 40px;
    margin-left: 80px;
    border: 1px solid black;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer_bottom {
    margin-top: 50px;
    text-align: center;

    p {
        font-size: 13px;
        color: #999;
    }
}